<?php
require_once 'init.php';

$page = cf\api\page\get('main');
$pageId = $page['id'];

$smarty->assign('name',$page['name']);
$smarty->assign('title',$page['title']);
$smarty->assign('keywords',$page['keywords']);
$smarty->assign('descr',$page['descr']);

$products = new cf\Products('hits');
$smarty->assign('products', $products->getList());

$smarty->display('index.tpl');

?>
